﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001191 RID: 4497
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetSignatureScRsp : IMessage<SetSignatureScRsp>, IMessage, IEquatable<SetSignatureScRsp>, IDeepCloneable<SetSignatureScRsp>, IBufferMessage
	{
		// Token: 0x170038E5 RID: 14565
		// (get) Token: 0x0600C946 RID: 51526 RVA: 0x0021E81C File Offset: 0x0021CA1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetSignatureScRsp> Parser
		{
			get
			{
				return SetSignatureScRsp._parser;
			}
		}

		// Token: 0x170038E6 RID: 14566
		// (get) Token: 0x0600C947 RID: 51527 RVA: 0x0021E823 File Offset: 0x0021CA23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetSignatureScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170038E7 RID: 14567
		// (get) Token: 0x0600C948 RID: 51528 RVA: 0x0021E835 File Offset: 0x0021CA35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetSignatureScRsp.Descriptor;
			}
		}

		// Token: 0x0600C949 RID: 51529 RVA: 0x0021E83C File Offset: 0x0021CA3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetSignatureScRsp()
		{
		}

		// Token: 0x0600C94A RID: 51530 RVA: 0x0021E84F File Offset: 0x0021CA4F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetSignatureScRsp(SetSignatureScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.signature_ = other.signature_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C94B RID: 51531 RVA: 0x0021E880 File Offset: 0x0021CA80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetSignatureScRsp Clone()
		{
			return new SetSignatureScRsp(this);
		}

		// Token: 0x170038E8 RID: 14568
		// (get) Token: 0x0600C94C RID: 51532 RVA: 0x0021E888 File Offset: 0x0021CA88
		// (set) Token: 0x0600C94D RID: 51533 RVA: 0x0021E890 File Offset: 0x0021CA90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170038E9 RID: 14569
		// (get) Token: 0x0600C94E RID: 51534 RVA: 0x0021E899 File Offset: 0x0021CA99
		// (set) Token: 0x0600C94F RID: 51535 RVA: 0x0021E8A1 File Offset: 0x0021CAA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Signature
		{
			get
			{
				return this.signature_;
			}
			set
			{
				this.signature_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x0600C950 RID: 51536 RVA: 0x0021E8B4 File Offset: 0x0021CAB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetSignatureScRsp);
		}

		// Token: 0x0600C951 RID: 51537 RVA: 0x0021E8C4 File Offset: 0x0021CAC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetSignatureScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && !(this.Signature != other.Signature) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C952 RID: 51538 RVA: 0x0021E914 File Offset: 0x0021CB14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Signature.Length != 0)
			{
				num ^= this.Signature.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C953 RID: 51539 RVA: 0x0021E96E File Offset: 0x0021CB6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C954 RID: 51540 RVA: 0x0021E976 File Offset: 0x0021CB76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C955 RID: 51541 RVA: 0x0021E980 File Offset: 0x0021CB80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Signature.Length != 0)
			{
				output.WriteRawTag(66);
				output.WriteString(this.Signature);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C956 RID: 51542 RVA: 0x0021E9E0 File Offset: 0x0021CBE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Signature.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Signature);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C957 RID: 51543 RVA: 0x0021EA3C File Offset: 0x0021CC3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetSignatureScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Signature.Length != 0)
			{
				this.Signature = other.Signature;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C958 RID: 51544 RVA: 0x0021EA91 File Offset: 0x0021CC91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C959 RID: 51545 RVA: 0x0021EA9C File Offset: 0x0021CC9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 66U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.Signature = input.ReadString();
				}
			}
		}

		// Token: 0x040050D3 RID: 20691
		private static readonly MessageParser<SetSignatureScRsp> _parser = new MessageParser<SetSignatureScRsp>(() => new SetSignatureScRsp());

		// Token: 0x040050D4 RID: 20692
		private UnknownFieldSet _unknownFields;

		// Token: 0x040050D5 RID: 20693
		public const int RetcodeFieldNumber = 11;

		// Token: 0x040050D6 RID: 20694
		private uint retcode_;

		// Token: 0x040050D7 RID: 20695
		public const int SignatureFieldNumber = 8;

		// Token: 0x040050D8 RID: 20696
		private string signature_ = "";
	}
}
